package com.imooc.mapper;

import com.imooc.my.mapper.MyMapper;
import com.imooc.pojo.Items;
import com.imooc.pojo.vo.ItemCommentVO;
import com.imooc.pojo.vo.SearchItemsVO;
import com.imooc.pojo.vo.ShopcartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemsMapperCustom {

   public List<ItemCommentVO> queryItemComments(@Param("paramsMap")  Map<String,Object> map);


   public List<SearchItemsVO> searchItems(@Param("paramsMap")  Map<String,Object> map);

   public List<SearchItemsVO> searchItemsByThirdCat(@Param("paramsMap")  Map<String,Object> map);

   public List<ShopcartVO> queryItemsBySpecIds(@Param("paramsList")  List specIdsList);

   public int decreaseItemSpecStock(@Param("specId")  String specId,@Param("pendingCounts")  int pendingCounts);
}